using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class StadiumInfo
    {
        #region CONSTRUCTORS
        public StadiumInfo()
        {

            this.m_stadiumID = Util.NULL_LONG;
            this.m_stadiumName = Util.NULL_STRING;
            this.m_buildDate = Util.NULL_STRING;
            this.m_imgPath = Util.NULL_STRING;
            this.m_firstMatch = Util.NULL_STRING;
            this.m_seatNo = Util.NULL_STRING;
            this.m_teamID = Util.NULL_INT;
            this.m_teamOther = Util.NULL_STRING;
            this.m_address = Util.NULL_STRING;
            this.m_city = Util.NULL_STRING;
            this.m_country = Util.NULL_STRING;
            this.m_history = Util.NULL_STRING;
            this.m_note = Util.NULL_STRING;
            this.m_reporter = Util.NULL_STRING;
            this.m_createdBy = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_status = Util.NULL_BYTE;
        }
        public StadiumInfo(long stadiumID, string stadiumName, string buildDate, string imgPath, string firstMatch, string seatNo, int teamID, string teamOther, string address, string city, string country, string history, string note, string reporter, string createdBy, DateTime createdDate, byte status)
        {

            this.m_stadiumID = stadiumID;
            this.m_stadiumName = stadiumName;
            this.m_buildDate = buildDate;
            this.m_imgPath = imgPath;
            this.m_firstMatch = firstMatch;
            this.m_seatNo = seatNo;
            this.m_teamID = teamID;
            this.m_teamOther = teamOther;
            this.m_address = address;
            this.m_city = city;
            this.m_country = country;
            this.m_history = history;
            this.m_note = note;
            this.m_reporter = reporter;
            this.m_createdBy = createdBy;
            this.m_createdDate = createdDate;
            this.m_status = status;
        }
        public StadiumInfo(DataRow dRow)
        {

            this.m_stadiumID = (long)Util.ReplaceDBNullTo(dRow["stadiumID"], Util.NULL_LONG);
            this.m_stadiumName = Util.ReplaceDBNullTo(dRow["stadiumName"], Util.NULL_STRING).ToString();
            this.m_buildDate = Util.ReplaceDBNullTo(dRow["buildDate"], Util.NULL_STRING).ToString();
            this.m_imgPath = Util.ReplaceDBNullTo(dRow["imgPath"], Util.NULL_STRING).ToString();
            this.m_firstMatch = Util.ReplaceDBNullTo(dRow["firstMatch"], Util.NULL_STRING).ToString();
            this.m_seatNo = Util.ReplaceDBNullTo(dRow["seatNo"], Util.NULL_STRING).ToString();
            this.m_teamID = (int)Util.ReplaceDBNullTo(dRow["teamID"], Util.NULL_INT);
            this.m_teamOther = Util.ReplaceDBNullTo(dRow["teamOther"], Util.NULL_STRING).ToString();
            this.m_address = Util.ReplaceDBNullTo(dRow["address"], Util.NULL_STRING).ToString();
            this.m_city = Util.ReplaceDBNullTo(dRow["city"], Util.NULL_STRING).ToString();
            this.m_country = Util.ReplaceDBNullTo(dRow["country"], Util.NULL_STRING).ToString();
            this.m_history = Util.ReplaceDBNullTo(dRow["history"], Util.NULL_STRING).ToString();
            this.m_note = Util.ReplaceDBNullTo(dRow["note"], Util.NULL_STRING).ToString();
            this.m_reporter = Util.ReplaceDBNullTo(dRow["reporter"], Util.NULL_STRING).ToString();
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private long m_stadiumID;
        private string m_stadiumName;
        private string m_buildDate;
        private string m_imgPath;
        private string m_firstMatch;
        private string m_seatNo;
        private int m_teamID;
        private string m_teamOther;
        private string m_address;
        private string m_city;
        private string m_country;
        private string m_history;
        private string m_note;
        private string m_reporter;
        private string m_createdBy;
        private DateTime m_createdDate;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public long StadiumID
        {
            get
            {
                return this.m_stadiumID;
            }
            set
            {
                this.m_stadiumID = value;
            }
        }

        public string StadiumName
        {
            get
            {
                return this.m_stadiumName;
            }
            set
            {
                this.m_stadiumName = value;
            }
        }

        public string BuildDate
        {
            get
            {
                return this.m_buildDate;
            }
            set
            {
                this.m_buildDate = value;
            }
        }

        public string ImgPath
        {
            get
            {
                return this.m_imgPath;
            }
            set
            {
                this.m_imgPath = value;
            }
        }

        public string FirstMatch
        {
            get
            {
                return this.m_firstMatch;
            }
            set
            {
                this.m_firstMatch = value;
            }
        }

        public string SeatNo
        {
            get
            {
                return this.m_seatNo;
            }
            set
            {
                this.m_seatNo = value;
            }
        }

        public int TeamID
        {
            get
            {
                return this.m_teamID;
            }
            set
            {
                this.m_teamID = value;
            }
        }

        public string TeamOther
        {
            get
            {
                return this.m_teamOther;
            }
            set
            {
                this.m_teamOther = value;
            }
        }

        public string Address
        {
            get
            {
                return this.m_address;
            }
            set
            {
                this.m_address = value;
            }
        }

        public string City
        {
            get
            {
                return this.m_city;
            }
            set
            {
                this.m_city = value;
            }
        }

        public string Country
        {
            get
            {
                return this.m_country;
            }
            set
            {
                this.m_country = value;
            }
        }

        public string History
        {
            get
            {
                return this.m_history;
            }
            set
            {
                this.m_history = value;
            }
        }

        public string Note
        {
            get
            {
                return this.m_note;
            }
            set
            {
                this.m_note = value;
            }
        }

        public string Reporter
        {
            get
            {
                return this.m_reporter;
            }
            set
            {
                this.m_reporter = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}